//
//  USChatController+IM.h
//  us
//
//  Created by lhx on 2025/4/7.
//

#import "USChatController.h"
#import "USEMRemindManager.h"
NS_ASSUME_NONNULL_BEGIN

@interface USChatController (IM)<EMChatManagerDelegate>

- (void)initConversation;


- (void)loadMessagesWithCompletion:(void(^)(NSArray <EMChatMessage *>*messages, NSError *error))completion;

//发送纯文本文本消息
- (void)m_sendText:(NSString *)aText;

    
//发送图片消息
- (void)m_sendImageData:(NSData *)aImageData size:(CGSize)size;
- (void)m_sendImageWithaFilePath:(NSString *)filePath;

//发送表情图片
- (void)m_sendEmjoWithEmjoName:(NSString *)emjoName;

///发送录音消息
- (void)m_sendVoiceWithFilePath:(NSString *)filePath
                     timeLength:(NSInteger)aTimeLength
                        volumes:(NSArray *)volumes;

///删除消息
- (void)m_deleteMessage:(EMChatMessage *)message
             Completion:(void(^)(void))completion;

///撤回消息
- (void)m_recallMessage:(EMChatMessage *)message
             Completion:(void(^)(void))completion;


///已读回执
- (void)m_sendReadReceipt:(EMChatMessage *)msg;

@end

NS_ASSUME_NONNULL_END
